// JavaScript Document
$(function(){

    $('.six_mid .six_span').click(function(){
        var num = $(this).index();

        $('.six_mid .six_span').eq(num).css({color:" #f69",borderBottom:"2px solid #f69"}).siblings('.six_mid .six_span').css({color:" #666",border:"none"});
        $('.pics_six .pics_six2').eq(num).fadeIn('slow').siblings('.pics_six .pics_six2').stop().fadeOut('slow');
    })



    $('.sev_mid .mid_first').click(function(){
        
        var num = $(this).index();
        $('.sev_mid .mid_first').eq(num).css({color:" #f69",borderBottom:"2px solid #f69"}).siblings('.sev_mid .mid_first').css({color:" #666",border:"none"});
        $('.pics_sev .pics_sev2').eq(num).fadeIn('slow').siblings('.pics_sev .pics_sev2').stop().fadeOut('slow');

    })
    



    // 滚动条
    var  tab= 0;
    function run(){
        tab++;
        if(tab==4){
        	$('#roll_down .down1').css({top:"0px"});
        	tab = 1;
        }
        var tp = tab*-32;
        $('#roll_down .down1').animate({top:tp+"px"});
    }
    timer = setInterval(run,2000);

    $('#roll_down').hover(function() {
    	clearInterval(timer);
    }, function() {
    	timer = setInterval(run,2000);
    });


    

























})